home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.compilers / comp.sys.amiga.programmer_5022_000015.msg < prev    next >
Encoding:
Text File  |  1994-11-27  |  2.6 KB  |  65 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: dd.chalmers.se!news.chalmers.se!sunic!EU.net!howland.reston.ans.net!usenet.ins.cwru.edu!lerc.nasa.gov!news.larc.nasa.gov!xanth.cs.odu.edu!concert!sas!mozart.unx.sas.com!walker
  3. From: walker@twix.unx.sas.com (Doug Walker)
  4. Subject: Re: SAS C 6.51 and PGP....
  5. Originator: walker@twix.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <CKB015.E2K@unx.sas.com>
  8. Date: Thu, 27 Jan 1994 19:41:29 GMT
  9. References:  <FLAX.94Jan27200550@frej.teknikum.uu.se>
  10. Nntp-Posting-Host: twix.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 52
  13.  
  14.  
  15. In article <FLAX.94Jan27200550@frej.teknikum.uu.se>, flax@frej.teknikum.uu.se (Jonas Flygare) writes:
  16. |> 
  17. |> Problem: After downloading latest PGP source (pgpamiga23a2_src.lha)
  18. |> and unpacking I tried a compile. The supplied smakefile would not
  19. |> proceed with the link phase. After moving the link command to another
  20. |> place on the commandline it would link, but the linker would complain
  21. |> about lots of undefined symbols. (And they were not undefined, as a
  22. |> quick glance in the source told me)
  23. |> Rather than assuming this is a compiler bug, I thought I'd start by
  24. |> asking.. Is there anyone out there who have managed to compile the
  25. |> latest PGP with SAS C 6.51, and if so, what do I need to do in order
  26. |> to make it. :) Email preferred.
  27.  
  28. Sounds like you've run into a bug in the 6.51 SC command that has bitten
  29. a lot of people.  Unfortunately, we linked the SC command with the 
  30. wrong startup code, and it is limited to only 30 command-line parameters
  31. in 6.51.  6.50 and 6.0 were limited to 126.
  32.  
  33. We modified the 6.51 startup code to allow unlimited parameters, and
  34. we thought the 6.51 SC command was being linked with the new startup;
  35. unfortunately, this wasn't the case.  6.51 SC got linked with an older
  36. startup module.
  37.  
  38. To fix it, change the SMAKEFILE to use a temporary file.  You can do
  39. this as follows.  Instead of this:
  40.  
  41.    target: $(OBJS)
  42.       sc link $(OBJS)
  43.  
  44. use this:
  45.  
  46.    target: $(OBJS)
  47.       sc link with <<
  48.    $(OBJS)
  49.    <
  50.  
  51. The << tells SMAKE to start a temporary file; the < tells it to finish
  52. the file and substitute the filename for the stuff between the << and
  53. the <.
  54.  
  55. The MKMK smakefile generator automatically does this for you, by the
  56. way, so if you have questions about the syntax, just run MKMK.
  57.  
  58. -- 
  59.   *****                    / walker@unx.sas.com
  60.  *|_o_o|\\     Doug Walker<  BIX, Portal: djwalker
  61.  *|. o.| ||                \ CompuServe: 71165,2274
  62.   | o  |//     
  63.   ====== 
  64. Any opinions expressed are mine, not those of SAS Institute, Inc.
  65.